import { createRouter, createWebHistory } from 'vue-router';
import Home from '../views/Home.vue';
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
import Delete from '../views/Delete.vue';
import AdminView from '../views/AdminView.vue'
import Members from "../views/Members.vue";

const routes = [
    { path: '/', name: 'Home', component: Home },
    { path: '/login', name: 'Login', component: Login },
    { path: '/register', name: 'Register', component: Register },
    { path: '/delete', name: 'Delete', component: Delete },
   // { path: '/user', name: 'User', component: UserView },
    { path: '/members', name: 'Members', component: Members },
    { path: '/admin', name: 'Admin', component: AdminView },

];

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes,
});


export default router;
